package aiaudio.storage.simple;

import aiaudio.storage.api.IUser;

/**
 *
 * @author Nastya
 */
public class User implements IUser {

    private String uid;

    public User(String uid) {
        this.uid = uid;
    }

    @Override
    public String getUID() {
        return uid;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final User other = (User) obj;
        if ((this.uid == null) ? (other.uid != null) : !this.uid.equals(other.uid)) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "User{" + "uid=" + uid + '}';
    }
}
